package com.zf.yichat.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


@Table(name = "sensitives")
public class SysSensitives implements Serializable {

    @Id
    private Integer id;
    /**
     * 敏感词
     */
    private String word;

    /**
     * 替换词
     */
    @Column(name = "replaceWord")
    private String replaceWord;

    @Column(name = "createdAt")
    private Date createdAt;

    public SysSensitives(){}

    public SysSensitives(Integer id, String word, String replaceWord, Date createdAt) {
        this.id = id;
        this.word = word;
        this.replaceWord = replaceWord;
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getReplaceWord() {
        return replaceWord;
    }

    public void setReplaceWord(String replaceWord) {
        this.replaceWord = replaceWord;
    }
}
